package com.kitbox.hl.meshow.conf;

import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Auther: honglei
 * @Date: 2019/8/15 10:17
 * @Description:
 */
@Configuration
public class MyConfig {
    @Bean
    public Gson initGson() {
        return new Gson();
    }

    @Autowired
    RestTemplateBuilder builder;
    @Bean
    public RestTemplate restTemplate(){
        return builder.build();
    }

}
